<div class="bgc-w box box-primary">
    <!--盒子头-->
    <div class="box-header">
        <h3 class="box-title">
            <a href="positionedit" class="label label-success" style="padding: 5px;">
                <span class="glyphicon glyphicon-plus"></span> 新增
            </a>
        </h3>



        <div class="box-tools">
            <form name="actionForm" >
            <div class="input-group" style="width: 150px;">
                <input type="text" class="form-control input-sm"
                       placeholder="查找..." id="searchText" name="search" value="${(search)!''}"/>
                <div class="input-group-btn">
                    <a class="btn btn-sm btn-default" id="search" onclick="javascript:formSubmit()"><span
                                class="glyphicon glyphicon-search"></span></a>
                </div>
            </div>
            </form>
        </div>
    </div>
    <!--盒子身体-->
    <div class="box-body no-padding">
        <div class="table-responsive">
            <table class="table table-hover table-striped">
                <tr>

                    <th scope="col">名称</th>
                    <th scope="col">层级</th>
                    <th scope="col">描述</th>
                    <th scope="col">操作</th>
                </tr>
                <#list positions as position>
                    <tr>
                        <td><span>${position.name}</span></td>
                        <td><span>${(position.level)!''}</span></td>
                        <td><span>${(position.describtion)!''}</span></td>
                        <td><a  href="positionedit?positionid=${position.positionId}" class="label xiugai"><span
                                        class="glyphicon glyphicon-edit"></span> 修改</a>
                            <a href="deletePositon?positionId=${position.positionId}&&page=${page.number}" onclick="{return confirm('删除该记录将不能恢复，确定删除吗？');}" class="pull-right " >
                                <i class='glyphicon glyphicon-remove-sign'></i></a></td>
                    </tr>
                </#list>
            </table>
        </div>
    </div>
    <#include "/common/paging.ftl">
</div>
<script>
    function formSubmit(){
        document.actionForm.action = "positionmanage";
        document.actionForm.submit();
    }
</script>